package com.example.crashhandler;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;

public class MainActivity extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main);
							
		findViewById(R.id.btn_main_crash).setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {	
				// 抛出异常测试
				int i = 10;				
				int j = i / 0;				
			}
		});
	}
}
